package a.h;

import javax.swing.text.AttributeSet;
import javax.swing.text.BadLocationException;
import java.text.DecimalFormatSymbols;
import java.util.Locale;

class ge
  extends ee
{
  private char b;
  private final StringBuffer d = new StringBuffer();
  
  public ge(Locale paramLocale)
  {
    this.b = a(paramLocale);
  }
  
  public char b()
  {
    return this.b;
  }
  
  public void b(char paramChar)
  {
    this.b = paramChar;
  }
  
  public void insertString(int paramInt, String paramString, AttributeSet paramAttributeSet)
    throws BadLocationException
  {
    int i4 = ec.t;
    boolean bool = ec.s;
    if (i4 == 0) {
      if (paramString == null) {
        return;
      }
    }
    char[] arrayOfChar1 = paramString.toCharArray();
    this.d.setLength(0);
    int i = 0;
    if ((i4 != 0) || (arrayOfChar1.length > 0))
    {
      if (i4 == 0)
      {
        if (paramInt == 0) {
          if (i4 != 0) {
            break label90;
          }
        }
      }
      else if (a(arrayOfChar1[0]))
      {
        this.d.append(arrayOfChar1[0]);
        i++;
      }
      label90:
      String str = super.getText(0, super.getLength());
      int j = 0;
      int k = 0;
      int m = -1;
      int n = -1;
      char[] arrayOfChar2 = str.toLowerCase().toCharArray();
      int i1 = 0;
      label229:
      do
      {
        do
        {
          if (i1 >= arrayOfChar2.length) {
            break;
          }
          if (bool) {
            break label251;
          }
          if (this.b == arrayOfChar2[i1]) {
            j++;
          }
          if (i4 == 0)
          {
            if ('e' == arrayOfChar2[i1])
            {
              k++;
              m = i1;
              if (i4 != 0) {
                continue;
              }
              if (i1 + 1 < arrayOfChar2.length)
              {
                if (i4 == 0) {
                  if ('+' != arrayOfChar2[(i1 + 1)])
                  {
                    if (i4 != 0) {
                      continue;
                    }
                    if ('-' != arrayOfChar2[(i1 + 1)]) {
                      break label229;
                    }
                  }
                }
                n = i1 + 1;
              }
            }
            i1++;
          }
        } while (!bool);
      } while (i4 != 0);
      i1 = i;
      label251:
      do
      {
        if (i1 >= arrayOfChar1.length) {
          break;
        }
        if (i4 != 0) {
          break label487;
        }
        if (bool) {
          break label486;
        }
        if (i4 == 0) {}
        int i2 = this.b == arrayOfChar1[i1] ? 1 : 0;
        if (i4 == 0) {
          if (i2 != 0) {
            j++;
          }
        }
        if (i4 == 0) {}
        int i3 = 'e' == Character.toLowerCase(arrayOfChar1[i1]) ? 1 : 0;
        if (i4 == 0) {
          if (i3 != 0)
          {
            k++;
            m = paramInt + i1;
          }
        }
        if (((i4 != 0) || (!Character.isDigit(arrayOfChar1[i1]))) && ((i4 != 0) || ((i2 == 0) || ((i4 != 0) || (j >= 2)))) && ((i4 != 0) || ((i3 == 0) || ((i4 != 0) || (k >= 2)))))
        {
          if (i4 == 0)
          {
            if ('+' != arrayOfChar1[i1])
            {
              if (i4 != 0) {
                continue;
              }
              if ('-' != arrayOfChar1[i1]) {}
            }
            else
            {
              if (i4 != 0) {
                continue;
              }
            }
          }
          else if (m == paramInt + i1 - 1)
          {
            if (i4 != 0) {
              continue;
            }
            if (n >= 0) {}
          }
        }
        else {
          this.d.append(arrayOfChar1[i1]);
        }
        i1++;
      } while (!bool);
    }
    if (i4 == 0) {
      label486:
      label487:
      super.insertString(paramInt, this.d.toString(), paramAttributeSet);
    }
  }
  
  public static char a(Locale paramLocale)
  {
    return new DecimalFormatSymbols(paramLocale).getDecimalSeparator();
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.h.ge

 * JD-Core Version:    0.7.0.1

 */